Trò chơi đua xe động vật trong UNITY Engine
114.733 lượt xem;
- LevelText.cs
- Prepare /
- GameScreen /
- AnimalRacing /
- Scripts /
- Assets /
- project /
1 using UnityEngine;
2 using System.Collections;
3
4 namespace GamePlay
5 {
6
7 public class LevelText : MonoBehaviour
8 {
9 void Start()
10 {
11 BitmapFont fontResult = new BitmapFont("Fonts/font_result", "Fonts/font_result_xml", gameObject);
12 fontResult.setText("Level " + ((Attr.currentWorld * 15) + Attr.currentLevel + 1), -1, 15, "GUI", "GUI");
13 }
14 }
15 }
2 using System.Collections;
3
4 namespace GamePlay
5 {
6
7 public class LevelText : MonoBehaviour
8 {
9 void Start()
10 {
11 BitmapFont fontResult = new BitmapFont("Fonts/font_result", "Fonts/font_result_xml", gameObject);
12 fontResult.setText("Level " + ((Attr.currentWorld * 15) + Attr.currentLevel + 1), -1, 15, "GUI", "GUI");
13 }
14 }
15 }